package io.wdb.modules.generator.generator.entity.web;

public enum ResponseEnum {
	
	DEPOSIT_NOT_EXIST(1001,"用户押金不存在"),
	USER_FREEZE(1002,"用户押金被冻结"),
	USER_CHARGE_LOG_NOT_EXIST(1003,"用户无实际充押金记录"),
	
	USER_CURRENT_BORROW_BOOK(1004,"该图书未被出借"),
	
	NO_UPLOAD_EXCEL(1005,"用户未上传相应文件"),
	UNLOCK_GRID_FAIL(1006,"号书格开启失败"),
	UNLOCK_GRID_STATUS_ERROR(1007,"书格当前状态不允许打开"),
	REFRESH_GRID_STATUS_ERROR(1008,"书格当前状态不允许重新盘点"),
	REFRESH_GRID_RES_ERROR(1009,"在规定时间未能获取状态返回，盘点结果未知"),
	BOOK_GRID_OPEN(1010,"书格当前已经打开"),
	BOOK_GRID_OPEN_TIMEOUT(1011,"在规定时间内未能获取状态返回，书格打开结果未知"),
	REFRESH_GRID_STATUS_FAIL(1012,"书格盘点失败"),
	USER_ADD_FAIL(10013,"新增用户失败"),
	USER_ADD_EXIST(1014,"新增用户已经存在"),
	AUDIT_DEPOSIT_REFUND(10015,"审核退押金成功"),
	OPERATE_DEPOSIT_SUCCESS(10016,"操作退押金成功"),
	OPERATE_DEPOSIT_FAIL(10017,"操作退押金失败"),
	CANCEL_BOOK_NOT_EXIST(10018,"要作废的书籍不存在"),
	CANCEL_BOOK_SUCCESS(10019,"书籍作废成功"),
	CANCEL_BOOK_FAIL(10020,"书籍作废失败"),
	FILE_FORMAT_ERROR(10021,"上传文件格式不正确"),
	FILE_ANALYSIS_ERROR(10022,"文件处理失败"),
	SHELF_CODE_IS_NULL(10023,"请先选定某个书柜"),
	RESTART_SHELF_STATUS_ERROR(2001,"书柜当前状态不允许重启"),
	RESTART_SHELF_ERROR(2002,"书柜重启失败"),
	CHECK_ALL_SHELF_STATUS_ERROR(2003,"书柜当前状态不允许整柜盘点"),
	CHECK_ALL_SHELF_SEND_ERROR(2004,"整柜盘点请求发送至服务端失败"),
	;
	
	private Integer code;
	private String message;
	private ResponseEnum(Integer code,String message) {
		this.code = code;
		this.message = message;
	}
	public Integer getCode() {
		return code;
	}
	public String getMessage() {
		return message;
	}
	
}
